<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="managesystem.Student" %>
<%
	Student currStud = (Student) session.getAttribute("currStud");
%>
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" />
<script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>

<div data-role="page" id="home">
	<div data-role="header" data-theme="b">
	<a href="../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
	<a href="/logoutStudent" data-icon="delete" class="ui-btn-left">Logout</a>
		<h1>Scan || Home</h1>
	</div>

	<div data-role="content" data-theme="b">
	<% 	String message = (String) session.getAttribute("message"); 
		String error = (String) session.getAttribute("error");
		session.setAttribute("message",null);
		session.setAttribute("error",null);
		%>
		
		<p>Hello <%=currStud.getFname() %> ,</p>	
		<p>Use the toolbar below to navigate through the webapp.</p>
		<%
			if(message != null){
				%>
					<p style="color:green;"><%=message%></p>
				<%
			}
			if(error!=null){
				%>
					<p style="color:red;"><%=error %></p>
				<%
			}
		%>
	</div>

	
	<div data-role="footer" data-position="fixed" data-theme="b">
        <div data-role="navbar">
	        <ul>
                    <li><a href="/mobile-inc/track.jsp" data-ajax="false" data-icon="plus" >Track</a></li>
                    <li><a href="/mobile-inc/account.jsp" data-ajax="false" data-icon="gear" >Account</a></li>
                    <li><a href="/mobile-inc/activities.jsp" data-ajax="false" data-icon="star" >Activities</a></li>
	        </ul>
        </div>
       </div>

</div>
